﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body> 
		<?php if (!include_slot('navigation_menu')): ?>
			<ul>
				<?php if ($sf_user->isAuthenticated() && $sf_user->hasCredential('admin', false)): ?>
					<li><?=link_to("Пользователи", "@sf_guard_user")?></li>
					<li><?=link_to("Группы", "@sf_guard_group")?></li>
					<li><?=link_to("Права", "@sf_guard_permission")?></li>
				<?php endif; ?>
				<?php if ($sf_user->isAuthenticated()): ?>
					<li><?=link_to("Выйти", "@sf_guard_signout") ?></li>
				<?php endif; ?>
			</ul>
		<?php endif; ?>
		<div>
			<?=$sf_content ?>
		</div>
  </body>
</html>
